namespace DeviceRepairWorkflow.Api.Models;

public class Device
{
    public int Id { get; set; }
    public string Name { get; set; } = string.Empty;
    public string SerialNumber { get; set; } = string.Empty;
    public string Model { get; set; } = string.Empty;
    public string Location { get; set; } = string.Empty;
    public DeviceStatus Status { get; set; }
    public DateTime CreatedAt { get; set; }
    public DateTime? LastMaintenanceDate { get; set; }
    public List<RepairRequest> RepairRequests { get; set; } = new();
}

public enum DeviceStatus
{
    Normal,
    NeedsMaintenance,
    UnderRepair,
    OutOfService
} 